package ph.com.gs3.formalistics.model.vo.business.form;

import java.util.List;

public class FormFieldData extends FormViewContentData {

	public static final String TAG = FormFieldData.class.getSimpleName();

	private String label;
	private String placeHolder;
	private String value;
	private List<String> options;
	private boolean isHidden;
	private boolean isRequired;

	// ========================================================================
	// {{ Getters & Setters

	public boolean isHidden() {
		return isHidden;
	}

	public void setHidden(boolean isHidden) {
		this.isHidden = isHidden;
	}

	public boolean isRequired() {
		return isRequired;
	}

	public void setRequired(boolean isRequired) {
		this.isRequired = isRequired;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getPlaceHolder() {
		return placeHolder;
	}

	public void setPlaceHolder(String placeHolder) {
		this.placeHolder = placeHolder;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public List<String> getOptions() {
		return options;
	}

	public void setOptions(List<String> options) {
		this.options = options;
	}

	// }}

	// ========================================================================
	// Exceptions

	public static class InvalidFormFieldException extends Exception {

		private static final long serialVersionUID = 668103959494161980L;

		public InvalidFormFieldException(String message) {
			super(message);
		}

		public InvalidFormFieldException(String message, Throwable throwable) {
			super(message, throwable);
		}

	}
}
